
package exercise2_5;
import static org.junit.Assert.assertEquals;

import org.junit.Before;
import org.junit.Test;

public class Exercise2_5_Test {

	BachelorStudent student;
	Researcher researcher ;
	Intern intern;
	
	@Before
	public void setUp() throws Exception {
		
		student= new BachelorStudent("Prof X");
		researcher= new Researcher(500);
		intern= new Intern(student, 400);
	}
	
	@Test
	public void testResearcher(){
		String paperName = "object oriented Research";
		researcher.publishPaper(paperName);
		assertEquals(researcher.publishPaper(paperName), "Researcher has published paper "+ paperName);
	}
	
	@Test
	public void testIntern(){
		String paperName = "object oriented Research";
		
		assertEquals(intern.publishPaper(paperName), new String ("This intern  has been published "+student.writeThesis(paperName)));
	}

}